home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Oct 89 / Z0149-IObject reply-Oct89 < prev    next >
Encoding:
Text File  |  1989-10-23  |  921 b   |  28 lines  |  [TEXT/GEOL]

  1. Item    2713186                         20-Oct-89        13:37
  2.  
  3. From:   KEMINK1                         Kemink, Joost
  4.  
  5. To:     MID                             France, M.I.D.
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    IObject reply
  10.  
  11. Etienne,
  12.  
  13. This is my opinion on IObject:
  14.  
  15. Generally, when initializing an object in I<Classname>, one first sets SELF's
  16. instance variables to a known value. Especially those instance variables that
  17. will hold references to objects created in I<Classname>.
  18. This allows one to -in case of a failure- release any newly created data in the
  19. initialization process so far, just by calling FreeIfObject(instanceVar).
  20.  
  21. It is this “set to NIL”-type of initialization that could be performed in
  22. IObject. This makes I<Classname> a bit “cleaner” in the sense that in this
  23. method one does not have to worry about initializing the instance variables any
  24. more.
  25.  
  26. Joost Kemink
  27.  
  28.